import React, { Component } from "react";
import axios from 'axios'
import { NavLink, Outlet } from "react-router-dom";



export default class FilmsCom extends Component {
    constructor() {
        super()
    }
    getQuery() {
        axios.get('/api/pv?v=1&sdk=1.9.3&project=com.sankuai.myfe.hlb&pageurl=https%3A%2F%2Fi.maoyan.com%2F%23movie&pageId=owl-0e8dc106-b18c-2aa6-241d-1a5b-1717392953867&timestamp=1717392953871&region=&operator=&network=&container=&os=&unionid=18fdc97c2f6c8-081cd2840ce9dd-26001c51-1fa400-18fdc97c2f6c8').then(res => {
            console.log(res)
        }).catch(err => {
            console.log(err)
        })
    }

    render() {
        return (
            <div>
                FilmsCom
                <button onClick={this.getQuery.bind(this)}>get</button>
                <div>
                    {/* 路由容器 */}
                    <Outlet></Outlet>
                </div>
                <NavLink to="/CenTer" className={({ isActive }) => {
                    return isActive ? '' : ''
                }}>
                    center
                </NavLink>
            </div>
        )
    }
}

